import React from "react";
import {ChartPanelMap} from "../charts/chartsMap";


interface IProps {
  uid?: string;
  type?: string;
  frameType?: string;
  advanceConfig?: DV.IAdvanceConfig;
}

/**
 * 生成新的高级配置
 * 1、单向数据更新
 * 2、配置发生修改时只需要更新图表和保存配置到dvTool.charts 中
 * @param uid
 * @param type
 * @param frameType
 * @param advanceConfig
 * @constructor
 */
export default function AdvanceConfigBox({uid, type, frameType, advanceConfig}: IProps) {
  return <ChartPanelMap
    key={uid}
    uid={uid}
    type={type}
    frameType={frameType}
    advanceConfig={advanceConfig}
  />
}
